package com.qyc.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * 疾病类型表
 * @TableName manager_disease
 */
@TableName(value ="manager_disease")
public class Disease implements Serializable {
    /**
     * 病症id
     */
    @TableId(type = IdType.AUTO)
    private Integer dId;

    /**
     * 病症名称
     */
    private String dName;

    /**
     * 病症描述
     */
    private String dDesc;

    /**
     * 病症类型
     */
    private String dType;

    /**
     * 病源
     */
    private String dEtiology;

    /**
     * 症状
     */
    private String dSymptom;

    /**
     * 预防方式
     */
    private String dPrevention;

    public Disease() {
    }

    public Disease(Integer dId, String dName, String dDesc, String dType, String dEtiology, String dSymptom, String dPrevention) {
        this.dId = dId;
        this.dName = dName;
        this.dDesc = dDesc;
        this.dType = dType;
        this.dEtiology = dEtiology;
        this.dSymptom = dSymptom;
        this.dPrevention = dPrevention;
    }

    public Integer getdId() {
        return dId;
    }

    public void setdId(Integer dId) {
        this.dId = dId;
    }

    public String getdName() {
        return dName;
    }

    public void setdName(String dName) {
        this.dName = dName;
    }

    public String getdDesc() {
        return dDesc;
    }

    public void setdDesc(String dDesc) {
        this.dDesc = dDesc;
    }

    public String getdType() {
        return dType;
    }

    public void setdType(String dType) {
        this.dType = dType;
    }

    public String getdEtiology() {
        return dEtiology;
    }

    public void setdEtiology(String dEtiology) {
        this.dEtiology = dEtiology;
    }

    public String getdSymptom() {
        return dSymptom;
    }

    public void setdSymptom(String dSymptom) {
        this.dSymptom = dSymptom;
    }

    public String getdPrevention() {
        return dPrevention;
    }

    public void setdPrevention(String dPrevention) {
        this.dPrevention = dPrevention;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Disease disease = (Disease) o;
        return Objects.equals(dId, disease.dId) && Objects.equals(dName, disease.dName) && Objects.equals(dDesc, disease.dDesc) && Objects.equals(dType, disease.dType) && Objects.equals(dEtiology, disease.dEtiology) && Objects.equals(dSymptom, disease.dSymptom) && Objects.equals(dPrevention, disease.dPrevention);
    }

    @Override
    public int hashCode() {
        return Objects.hash(dId, dName, dDesc, dType, dEtiology, dSymptom, dPrevention);
    }

    @Override
    public String toString() {
        return "Disease{" +
                "dId=" + dId +
                ", dName='" + dName + '\'' +
                ", dDesc='" + dDesc + '\'' +
                ", dType='" + dType + '\'' +
                ", dEtiology='" + dEtiology + '\'' +
                ", dSymptom='" + dSymptom + '\'' +
                ", dPrevention='" + dPrevention + '\'' +
                '}';
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}